import { ObjectId } from "mongodb";
import { mongo } from "../mogoConfig";


const db = mongo.db("sample_mflix")
db.command({ dbStats: 1 })
    .then(result => {
        console.log("数据库统计信息：", JSON.stringify(result, null, 2))
    })
    .catch(error => {
        console.log(error)
    }).finally(() => {
        mongo.close()
    })

console.log("执行结束")